package org.jeecg.modules.yks.bas.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 产品表
 * @Author: jeecg-boot
 * @Date:   2023-11-30
 * @Version: V1.0
 */
@Data
@TableName("bas_product")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bas_product对象", description="产品表")
public class BasProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**产品类别*/
	@Excel(name = "产品类别", width = 15, dicCode = "product_class")
	@Dict(dicCode = "product_class")
    @ApiModelProperty(value = "产品类别")
    private String productClass;
	/**产品编码*/
	@Excel(name = "产品编码", width = 15)
    @ApiModelProperty(value = "产品编码")
    private String productCode;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15)
    @ApiModelProperty(value = "产品名称")
    private String productName;
	/**产品规格*/
	@Excel(name = "产品规格", width = 15)
    @ApiModelProperty(value = "产品规格")
    private String productSpec;
	/**单位*/
	@Excel(name = "单位", width = 15, dictTable = "yks_unit", dicText = "name", dicCode = "id")
	@Dict(dictTable = "yks_unit", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "单位")
    private String unitId;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15, dicCode = "equipment_type")
	@Dict(dicCode = "equipment_type")
    @ApiModelProperty(value = "设备类型")
    private String equipmentType;
	/**产品价钱*/
	@Excel(name = "产品价钱", width = 15)
    @ApiModelProperty(value = "产品价钱")
    private BigDecimal price;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**扩展日期字段*/
	@Excel(name = "扩展日期字段", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "扩展日期字段")
    private Date extDate;
	/**扩展日期字段1*/
	@Excel(name = "扩展日期字段1", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "扩展日期字段1")
    private Date extDate1;
	/**扩展数字字段*/
	@Excel(name = "扩展数字字段", width = 15)
    @ApiModelProperty(value = "扩展数字字段")
    private BigDecimal extNumber;
	/**扩展数字字段1*/
	@Excel(name = "扩展数字字段1", width = 15)
    @ApiModelProperty(value = "扩展数字字段1")
    private BigDecimal extNumber1;
	/**扩展数字字段2*/
	@Excel(name = "扩展数字字段2", width = 15)
    @ApiModelProperty(value = "扩展数字字段2")
    private BigDecimal extNumber2;
	/**扩展字符字段*/
	@Excel(name = "扩展字符字段", width = 15)
    @ApiModelProperty(value = "扩展字符字段")
    private String extText;
	/**扩展字符字段1*/
	@Excel(name = "扩展字符字段1", width = 15)
    @ApiModelProperty(value = "扩展字符字段1")
    private String extText1;
	/**扩展字符字段2*/
	@Excel(name = "扩展字符字段2", width = 15)
    @ApiModelProperty(value = "扩展字符字段2")
    private String extText2;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**多租户标识*/
	@Excel(name = "多租户标识", width = 15)
    @ApiModelProperty(value = "多租户标识")
    private String tenantId;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private Integer version;
	/**租户业务隔离ID*/
	@Excel(name = "租户业务隔离ID", width = 15)
    @ApiModelProperty(value = "租户业务隔离ID")
    private String tenantBusinessId;
}
